<!-- 考评设置组弹出框 -->
<div class="modal-content" style="width: 900px; left: -100px;">
	<div class="modal-header">
		<button type="button" class="close" ng-click="cancel();">&times;</button>
		<h4 class="modal-title" id="myModalLabel">考评设置组<span ng-bind="" ></span></h4>
	</div>
	<div class="modal-body">
		<div class="row form-group" style="margin-top: 20px;">
			<div class=" col-xs-5">
				<label class="control-label col-xs-3 text-right">考评组名称:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" ng-model="form.name">
				</div>
			</div>	
			<div class="col-xs-1">
			</div>   
			
			<div class="col-xs-6">
				<label class="col-xs-3 control-label text-right">业务类型:</label>
		 		<div class="col-xs-7">
			 		<select ui-select2 class="full-width"
					   ng-model="form.businessType">
						<option value=""></option>
						<option ng-repeat="data in businessTypeList"
									value="{{data.id}}">{{data.name}}</option>
					</select>
		 		</div>
			</div>   
			
		</div>
		
		
		<div class="row form-group">
			<div class=" col-xs-5">
		 		<label class="col-xs-3 control-label text-right">考评类别:</label>
		 		<div class="col-xs-7">
			 		<select ui-select2 class="full-width"
					   ng-model="form.idStandardscore" ng-change="changeType();">
						<option value=""></option>
						<option ng-repeat="data in ratingCategorys"
									value="{{data.id}}">{{data.name}}</option>
					</select>
		 		</div>
			 </div>		
			<div class="col-xs-1">
			</div>   
			
			<div class="col-xs-6">
				<label class="col-xs-3 control-label text-right">考评年度:</label>
		 		<div class="col-xs-7">
		 		    <input type="text" class="form-control" fwa-datetime ng-model="form.evaluationYear"  data-type="decade" data-format="yyyy" style="cursor: pointer;">
				</div>
			</div> 
			
		</div>
		
		<div class="row form-group">
			<div class="col-xs-5">
				<div class="col-xs-3 control-label text-right">
					考核内容:
				</div>
			</div>
			<div class="col-xs-7">
			</div>	
		</div>
		<div class="row" >
			<div class="col-xs-5" style="height: 240px;">
				<div class="full-width full-height form-group full-border full-overflow-y multiple-select-background" >
					<fwa-tree data="treeData" data-checkbox="false" data-text-name="name" data-nodes-name="list" data-open-depth="0">
					</fwa-tree>
				</div>
			</div>
			<div class="col-xs-1 text-center" style="padding-top:70px;">
				<p>
					<button class="btn btn-primary btn-sm" type="submit" ng-click="add();" >
						&gt;
					</button>
				</p>
				<p>
					<button class="btn btn-primary btn-sm" type="submit" ng-click="del();" >
						&lt;
					</button>
				</p>
			</div>
			<div class="col-xs-6">
				<div class="col-xs-12  full-overflow-y" style="height: 240px;">
					<table class="table fwa-table fwa-table-bordered">
						<thead>
							<tr>
								<th>考核内容、方法</th>
								<th>扣分细则</th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="grading in selectDatas" ng-class="{'active':grading.selected}" >
								<td style="vertical-align: middle;" title="{{grading.name}}" ng-click="selectData(grading,true);">
									<div class="full-width" >
										<span ng-bind="grading.name">
										</span>
									</div>
								</td>
								<td style="vertical-align: middle;padding: 0;">
									<div class="full-width normal-padding-left" title="{{data.name}}" ng-click="selectData(data,false);" ng-class="{'div-border-bottom': $index != (grading.list.length - 1),'table-active':data.selected}" ng-repeat="data in grading.list" style="line-height: 28px;">
										<span ng-bind="data.name">
										</span>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<div class="col-xs-12 text-center">
			<button type="button" class="btn btn-primary btn-sm" ng-click="saveConfirm();">
				保存
			</button>
			<button type="button" class="btn btn-default btn-sm" ng-click="cancel();" >
				取消
			</button>
		</div>
	</div>
</div>



